package com.itheima.mapper;

import com.itheima.pojo.Member;
import com.itheima.pojo.OrderDTO;
import org.apache.ibatis.annotations.*;

@Mapper
public interface MemberMapper {
    /**
     * 添加数据
     * @param member
     */
    void insert(Member member);

    /**
     * 根据名字查询
     * @param name
     * @return
     */
    @Select("select id from t_member where name = #{name}")
    Integer getByName(@Param("name") String name);
}
